<?php
class User extends AppModel {
	var $name = 'User';
	var $displayField = 'name';
	var $hasMany = array('Evaluation');
	
	var $validate = array(
		'name'=>array(
			'Please enter your name.'=>array(
				'rule'=>'notEmpty',
				'message'=>'Please enter your name.'
			)
		),
		'username'=>array(
			'That username has already been taken.'=>array(
				'rule'=>'isUnique',
				'message'=>'That username has already been taken.'
			)
		),
		'password'=>array(
			'Please enter a password.'=>array(
				'rule'=>'notEmpty',
				'message'=>'Please enter a password.'
			)
		)
	);
}
